<template>
    <div class="content">
        <div class="title">
            ABOUT US
        </div>
        <div class="subTitle">
            关于天惠
        </div>
        <div @click="click(item.url)" class="itemTitle" v-for="(item,index) of item.items " :key="index">
            {{item.title}}
        </div>
    </div>
</template>

<script>
    export default {
        name: "footer-item",
        props: {
            item: {
                type: Object,
                default: () => ({
                    title: "ABOUT US",
                    subTitle: '关于正宇',
                    items: [
                        {
                            title: '公司简介',
                            url: '/'
                        },
                        {
                            title: '产品展示',
                            url: '/product-list'
                        },
                        {
                            title: '联系我们',
                            url: '/contact',
                        }
                    ]
                })
            }
        },
        methods: {
            click(url) {
                this.$router.push(url)
            }
        }
    }
</script>

<style scoped>
    .content {
        padding-right: 48px;
    }

    .title {
        font-size: 26px;
        margin: 66px 9px 6px 0;
        color: white;
    }

    .subTitle {
        font-size: 20px;
        padding: 10px 0px 24px;
        color: white;
    }

    .itemTitle {
        font-size: 14px;
        cursor: pointer;
        padding: 6px;
        color: white;
    }

    .itemTitle:hover {
        text-decoration: underline;
    }
</style>